﻿using Microsoft.Phone.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using Windows8Accelerator.Core.Xaml.Helpers;

namespace Windows8Accelerator.Core.Xaml.Controls
{
    public class SuperFlyout : ContentControl
    {
        public static async Task ShowHtmlFile(string title, string htmlFilePath)
        {
            await AppHelper.NavigateToUriAsync(new Uri("/Windows8Accelerator.WindowsPhone7.Core.Xaml;component/Controls/SuperFlyoutPage.xaml", UriKind.Relative), new SuperFlyoutNavigationParameter()
            {
                Title = title,
                HtmlFilePath = htmlFilePath,
            });
        }
    }

    public class SuperFlyoutNavigationParameter 
    {
        public string Title { get; set; }

        public string HtmlFilePath { get; set; }
    }
}
